import './assets/main.css'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'

import axios from './api/request.js'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as ElIcon from '@element-plus/icons-vue'
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import "@/assets/tailwindcss.css"

const app = createApp(App)

// 全局注册Element Plus图标库
for (const [key, component] of Object.entries(ElIcon)) {
    app.component(key, component)
  }
app.config.globalProperties.$axios = axios

app.use(createPinia())
app.use(router)
app.use(ElementPlus,{locale: zhCn})
app.mount('#app')
